package com.my12306.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my12306.common.model.po.ScheduleJobPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:苏牧夕
 * @Date:2020/5/29 20:44
 * @Version 1.0
 */
@Mapper
public interface ScheduleJobDao extends BaseMapper<ScheduleJobPo> {
    public Long insertScheduleJob(ScheduleJobPo scheduleJobPo);

    void updateBatchStatusByIds(@Param("list") List<Long> list, @Param("status") Integer status);

    List<ScheduleJobPo> queryListPage(@Param("page") Integer page, @Param("limit") Integer limit, @Param("likeName") String likeName, @Param("status") Integer status);

    List<ScheduleJobPo> queryJobByUserIdAndJobId(@Param("userId") Long userId, @Param("jobId") Long jobId);
}
